package com.lagou.dao;

import com.lagou.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @Author zhangbbk
 * @Description //TODO
 * @Date 2020/5/8 22:26
 **/
public interface UserDao extends JpaRepository<User,Long> {

    User findByEmail(String email);

    User findByEmailAndPassword(String email,String password);
}
